package com.hevery.beans;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

/**
 * @description: 将类中所有的propertyValue(属性和值)收集起来
 * @author: hongyu.zhang
 * @create: 2018-03-20
 **/
public class PropertyValues {
    private List<PropertyValue> propertyValues = new ArrayList<PropertyValue>();

    public PropertyValues() {
    }

    public void addPropertyValue(PropertyValue pv){
        if(propertyValues.contains(pv)){
            return;
        }
        this.propertyValues.add(pv);
    }

    public List<PropertyValue> getPropertyValues() {
        return this.propertyValues;
    }
}
